<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>选择科室</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="/lobsteruiframe/weui/css/weui.css" />
    <link rel="stylesheet" href="/lobsteruiframe/weui/css/weuix.css" />
    <script src="/lobsteruiframe/weui/js/zepto.min.js"></script>
    <script src="/lobsteruiframe/weui/js/zepto.weui.js"></script>
    <script src="/lobsteruiframe/weui/js/swipe.js"></script>
    <script src="/lobsteruiframe/weui/js/macy.js"></script>
    <script src="/jslib/lobster.js"></script>
    <script src="/jslib/template-web.js"></script>

    <script src="../js/selectdept.js"></script>
    <style>
        .padding-all {
            padding: 10px
        }

        .w-3 {
            width: 33.33%;
            float: left;
            padding: .6rem .4rem;
            box-sizing: border-box;
            position: relative;
        }

        .category-top {
            border-bottom: 1px solid #e8e8e8;
            position: fixed;
            left: 0;
            top: 0;
            right: 0;
            z-index: 1000;
            background: #F6F6F9
        }

        .menu-left,
        .menu-right {
            position: fixed;
            left: 0;
            top: 44px;
            bottom: 0;
            overflow-y: scroll;
        }

        .menu-right #loading {
            left: 11px;
            top: 44px;
        }

        .menu-left {
            background: #F6F6F9;
        }

        .menu-left ul li {
            box-sizing: border-box;
            /* font-size: 12px; */
            color: #333;
            min-width: 76px;
            max-width: 120px;
            height: 42px;
            line-height: 42px;
            text-align: center;
        }

        .menu-left ul li.active {
            background: #fff;
            position: relative;
        }

        .menu-left ul li.active:before {
            content: " ";
            position: absolute;
            display: block;
            width: 2px;
            height: 100%;
            background: #07c160;
            top: 0;
            left: 0;
        }
    </style>
</head>

<body>
    <div class="wy-content">
        <div class="category-top">
            <header class='weui-header'>
                <div class="weui-search-bar" id="searchBar">
                    <form class="weui-search-bar__form" id="searchForm" action="JavaScript：return true;">
                        <div class="weui-search-bar__box">
                            <i class="weui-icon-search"></i>
                            <input type="search" class="weui-search-bar__input" id="searchInput" placeholder="请输入科室名称"
                                 >
                            <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
                        </div>
                        <label class="weui-search-bar__label" id="searchText"
                            style="transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);">
                            <i class="weui-icon-search"></i>
                            <span>请输入科室名称</span>
                        </label>
                    </form>
                    <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
                </div>
            </header>
        </div>
        <div id="content">
            <aside>
                <div class="menu-left scrollbar-none" id="sidebar">
    
                </div>
            </aside>
    
            <div class="weui-cells" id="sidebaritem" style="margin-left: 120px; margin-top: 60px;">
            </div>
        </div>
        
        <div style="margin-top: 100px;" class="weui-loadmore weui-loadmore_line hide" id="nodata">
            <span class="weui-loadmore__tips">无数据</span>
        </div>
    </div>

    <div class="weui-loadmore">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>
</body>

</html>
<script id="tpl" type="text/html">
    <ul>
        {{each list }}
            {{if($index==0)}}
            <li class="active deptLi" data-info="{{$value}}">
                {{$value.Name}}
            </li>
            {{else}}
            <li class="deptLi" data-info="{{$value}}">
                {{$value.Name}}
            </li>
            {{/if}}
        {{/each}}
    </ul>
</script>
<script id="tpldept" type="text/html">
    {{each list }}
        <a class="weui-cell weui-cell_access deptItem" href="javascript:;" data-info="{{$value}}">
            <div class="weui-cell__bd">
                <p> {{$value.Name}}</p>
            </div>
            <div class="weui-cell__ft">
            </div>
        </a>
    {{/each}}
</script>